import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/admin/rsa-linear/list',
    method:'get',
    params:params
  })
}
export function createRsaLinear(data) {
  return request({
    url:'/admin/rsa-linear/create',
    method:'post',
    data:data
  })
}
export function updateStatus(id,params) {
  return request({
    url:'/admin/rsa-linear/update/status/'+id,
    method:'post',
    params:params
  })
}


export function deleteRsaLinear(id) {
  return request({
    url:'/admin/rsa-linear/delete/'+id,
    method:'post',
  })
}


export function updateRsaLinear(id,rsaId,data) {
  return request({
    url:'/admin/rsa-linear/update/'+id+"/"+rsaId,
    method:'post',
    data:data
  })
}

